package cn.smartorigin.soas.frame;

import java.awt.event.ActionListener;

import javax.swing.JButton;

public class TextButton extends JButton{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public TextButton(String name) {
		super(name);
		initialize(name);
	}

	private void initialize(String name) {
		setHorizontalAlignment(JButton.LEFT);
		setHorizontalTextPosition(JButton.LEFT);
		setVerticalTextPosition(JButton.BOTTOM);
		setActionCommand(name);
//		addActionListener(new ActionListener());
	}
}
